﻿using gt.webapi.core.Entity.Client;
using System.Collections.Generic;

namespace gt.webapi.core.Repositories
{
    public interface IAuthorityRepository
    {
        AuthorityEntity GetAuthority(string appKey);
        void AddAuthority(AuthorityEntity client);
        void AddAuthorities(List<AuthorityEntity> clients);
        bool CheckAuthoritySecret(string appkey, string appsecret);
        bool CheckAuthority(string appkey, string controllerActionName);
    }
}
